package constant.milk.aptprice.apt;

import java.util.HashMap;

import android.content.Context;
import constant.milk.aptprice.database.DbAdapter;
import constant.milk.aptprice.database.DbInsertQuery;

public class JeollanamdoSetting
{
	private DbInsertQuery insertQuery;
	
	public JeollanamdoSetting(Context context, DbAdapter db)
	{
		insertQuery = new DbInsertQuery(context, db);
	}
	
	public void Setting() throws Exception
	{
		setData("강진군",	"153", "100");
		setData("고흥군",	"109", "68");
		setData("곡성군",	"111", "68");
		setData("광양시",	"113", "80");
		setData("구레군",	"128", "87");
		setData("나주시",	"130", "93");
		setData("담양군",	"118", "73");
		setData("목포시",	"143", "102");
		setData("무안군",	"203", "148");
		setData("보성군",	"114", "80");
		setData("순천시",	"157", "123");
		setData("신안군",	"0", "0");
		setData("여수시",	"145", "103");
		setData("영광군",	"110", "72");
		setData("영암군",	"124", "86");
		setData("완도군",	"135", "84");
		setData("장성군",	"102", "61");
		setData("장흥군",	"133", "85");
		setData("진도군",	"118", "81");
		setData("함평군",	"132", "80");
		setData("해남군",	"123", "79");
		setData("화순군",	"146", "94");
	}
	
	private void setData(String name, String meib, String junse) throws Exception
	{
		HashMap<String, String> map = new HashMap<String, String>();
		
		map.put("title", "전라남도");
		map.put("name", name);
		map.put("meib", meib);
		map.put("junse", junse);
		
		insertQuery.setAptData(map);
	}
}
